package com.dc.aimc.common.mybatis.config;

import lombok.Data;

/**
 * 数据库信息配置
 */
@Data
public class DataBaseConfig {

    /**
     * 数据库类型
     */
    private String dbType = "mysql";

    /**
     * url (IP+端口，如：182.92.200.86:3306)
     */
    private String url;

    /**
     * 数据库名
     */
    private String dataBase;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;


    public DataBaseConfig() {
    }

    public DataBaseConfig(String dbType, String url, String dataBase, String username, String password) {
        this.dbType = dbType;
        this.url = url;
        this.dataBase = dataBase;
        this.username = username;
        this.password = password;
    }
}
